package com.project.class4_12.lambda;

public class Man {
    /**编号*/
    private int id;
    /**姓名*/
    private String name;
    /**工资*/
    private int money;

    public Man() {
    }

    public Man(int id, String name, int money) {
        this.id = id;
        this.name = name;
        this.money = money;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }

    @Override
    public String toString() {
        return "Man{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", money=" + money +
                "}\n";
    }
}
